﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace RattlerRace
{
    public class Block
    {
        protected int _state;

        public int State
        {
            get { return _state; }
            set { _state = value; }
        }

        protected Point _p;

        public Point P
        {
            get { return _p; }
            set { _p = value; }
        }

        public Block() { }

        public Block(Point p)
        {
            this._p = p;
        }

        /// <summary>
        /// Meotda preverja, če je blok, ki je v parametru trden (State == 2) ali ne
        /// </summary>
        /// <param name="b"></param>
        /// <returns></returns>
        public bool checkCollision(Block b)
        {
            return (b.State == 2);
        }
    }
}
